package 常用类.String类.test03;

public class StringTest03 {
    public static void main(String[] args) {
        String s1 = "Hell word!";
        byte[] bytes = {97,98,99};
        String s2 = new String(bytes);
        System.out.println(s2.toString());
        String s3 = new String(bytes,1,2);
        System.out.println(s3);
        System.out.println("=========================================");
        char[] chars = {'我','抢','到','电','脑','啦'};
        String s4 = new String(chars);
        System.out.println(s4);
        String s5 = new String(chars,3,2);
        System.out.println(s5);
        System.out.println("=========================================");


    }
}
